import login from '@/components/login'
import sys from '@/components/sys/sys';
import store from '.././vuex/store'

export default[
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/main',
    name: 'main',
    component: sys,
    redirect: { path: store.state.currentView },//默认路径
    children : [
      {
        path: 'notFound',
        name: 'notFound',
        component: () => import("@/components/notfound.vue")
      },
      {
        path: 'welcome',
        name: 'welcome',
        component: () => import("@/components/welcome.vue")
      },
      //-----------------------------------------组织架构相关页面 START -----------------------------------------
      {
        path: 'sysSystemDict',
        name: 'sysSystemDict',
        component: () => import("@/components/sys/system/sys_system_dict.vue")
      },
      {
        path: 'sysSystemDictData',
        name: 'sysSystemDictData',
        component: () => import("@/components/sys/system/sys_system_dict_data.vue")
      },
      {
        path: 'sysSystemMenu',
        name: 'sysSystemMenu',
        component: () => import("@/components/sys/system/sys_system_menu.vue")
      },
      {
        path: 'sysSystemOffice',
        name: 'sysSystemOffice',
        component: () => import("@/components/sys/system/sys_system_office.vue"),
      },
      {
        path: 'sysSystemRole',
        name: 'sysSystemRole',
        component: () => import("@/components/sys/system/sys_system_role.vue"),
      },
      {
        path: 'sysSystemUser',
        name: 'sysSystemUser',
        component: () => import("@/components/sys/system/sys_system_user.vue"),
      },
      //-----------------------------------------组织架构相关页面 END -----------------------------------------
      //-----------------------------------------服务信息相关页面 START -----------------------------------------
      {
        path: 'serversBaseInfo',
        name: 'serversBaseInfo',
        component: () => import("@/components/sys/server/sys_server_base_info.vue")
      },
      {
        path: 'serversDetailInfo',
        name: 'serversDetailInfo',
        component: () => import("@/components/sys/server/sys_server_detail_info.vue")
      },
    ]
  },
]
